﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tenmah.BusinessLogic.BusinessEntities
{
    public class User
    {
        protected int? id;

        public int? Id
        {
            get { return id; }
        }

        protected string logOn;

        public string LogOn
        {
            get { return logOn; }
        }

        protected RoleCollection userRoles;

        public RoleCollection UserRoles
        {
            get { return userRoles; }
        }

        public User()
        {
        }

        public User(int? userID, string userLogin, RoleCollection userRoles)
        {
            this.id = userID;
            this.logOn = userLogin;
            this.userRoles = new RoleCollection();
            foreach (Role userRole in userRoles)
                this.userRoles.Add(userRole);
        }

        
    }
}
